package com.mszlu.blog.service.rabbitMQ;

import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

@Service
public class RabbitMQServiceImpl {

    @Autowired
    private RabbitTemplate rabbitTemplate;

    public void delete(Set keys){
        String queueName = "mq.cache";
        rabbitTemplate.convertAndSend(queueName, keys);
    }

}